import atom
import gdata

DOUBAN_NAMESPACE = 'http://www.douban.com/xmlns/'

class Location(atom.AtomBase):
    _tag = 'location'
    _namespace = DOUBAN_NAMESPACE
    _children = atom.AtomBase._children.copy()
    _attributes = atom.AtomBase._children.copy()
    
    def __init__(self, loc=None, **kwargs):
        atom.AtomBase.__init__(self, text=loc, **kwargs)

class Uid(atom.AtomBase):
    _tag = 'uid'
    _namespace = DOUBAN_NAMESPACE
    _children = atom.AtomBase._children.copy()
    _attributes = atom.AtomBase._children.copy()
    
    def __init__(self, id=None, **kwargs):
        atom.AtomBase.__init__(self, text=id, **kwargs)      